package 模板方法模式;

public abstract class AbstractTemplate {

    public AbstractTemplate() {
        checkNumber();
        queueUp();
        handleBusiness();
        serviceEvaluation();
    }

    //抽号
    public void checkNumber(){
        System.out.println("抽号......");
    }

    //排队
    public void queueUp(){
        System.out.println("排队......");
    }

    //业务办理
    public abstract void handleBusiness();

    //服务评价
    public void serviceEvaluation(){
        System.out.println("服务评价");
    }
}
